package club.zbiao.modules.system.service;

import club.zbiao.modules.system.domain.BaseEntity;
import club.zbiao.modules.system.service.dto.BaseDTO;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * @author zbiao
 * @date 2019-05-02
 */
public interface BaseQueryService<D extends BaseDTO, E extends BaseEntity> {

    D findById(Long id);

    E findOne(Long id);

    Map queryAll(D dict, Pageable pageable);

    List<D> queryAll(D dict);

}